package com.wan37.logic.domain.vo;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author : luoyong
 * @date : 2020-06-16 16:42
 **/
public class BackpackVO {

    private String backpackId;
    private String name;

    /**
     * 用于改变实体数值的变量集合
     */
    private volatile Map<String, Long> numberMap;
    private Integer label;
    /**
     * 客户端显示可叠加的数量
     */
    private Integer maxRepetition;

    public BackpackVO() {
        this.numberMap = new ConcurrentHashMap<>();
    }

    public String getBackpackId() {
        return backpackId;
    }

    public void setBackpackId(String backpackId) {
        this.backpackId = backpackId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Map<String, Long> getNumberMap() {
        return numberMap;
    }

    public void setNumberMap(Map<String, Long> numberMap) {
        this.numberMap = numberMap;
    }


    public Integer getLabel() {
        return label;
    }

    public void setLabel(Integer label) {
        this.label = label;
    }

    public Integer getMaxRepetition() {
        return maxRepetition;
    }

    public void setMaxRepetition(Integer maxRepetition) {
        this.maxRepetition = maxRepetition;
    }

    @Override
    public String toString() {
        return "BackPackVO{" +
                "backPackId='" + backpackId + '\'' +
                ", name='" + name + '\'' +
                ", numberMap=" + numberMap +
                ", label='" + label + '\'' +
                ", maxRepetition=" + maxRepetition +
                '}';
    }
}
